package com.atguigu.gmall.product.service.impl;

import com.atguigu.gmall.search.bean.SearchAttr;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.atguigu.gmall.product.entity.SkuAttrValue;
import com.atguigu.gmall.product.service.SkuAttrValueService;
import com.atguigu.gmall.product.mapper.SkuAttrValueMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class SkuAttrValueServiceImpl extends ServiceImpl<SkuAttrValueMapper, SkuAttrValue>
        implements SkuAttrValueService {

    @Override
    public List<SearchAttr> getSkuAttrsAndValue(Long skuId) {
        List<SearchAttr> searchAttrs = baseMapper.getSkuAttrsAndValue(skuId);
        return searchAttrs;
    }
}




